﻿Imports System.ComponentModel
Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.Globalization
Imports System.Data.Entity

Public Class Company
    <Key()> _
    <DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)> _
    Public Property ID As Integer

    Public Property Name As String
    Public Property Active As Boolean
End Class

Public Class CompanyDBContext
    Inherits DbContext
    Public Property Companies() As DbSet(Of Company)
    Public Property SalesPromotions As DbSet(Of SalesPromotion)
    Public Property Coupons As DbSet(Of Coupon)
End Class